Extend FileRepo::findFile private option to accept a User object
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 17 Jan 2014 16:42:45 +0000 (11:42 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 17 Jan 2014 16:43:22 +0000 (11:43 -0500)
commit99cb12b973fb773ab3bc0afbc93a3a2bd436760d
treebe580c643db15c9c0784b7ce387b0af1d8d59b64
parentd1c3e0120c673891ef0dd72fde80585409280297
Extend FileRepo::findFile private option to accept a User object

Callers may want to test visibility for a user other than $wgUser when
specifying the 'private' option. It seems a natural extension to allow
'private' to be a User object, with boolean true retaining its old
meaning of $wgUser.

Change-Id: Idbed0f3055c0135b5c11068de1bf1ef668e13456
includes/filerepo/FileRepo.php
includes/filerepo/LocalRepo.php